import React from 'react';
import {Search} from "@alifd/next";
import './index.css'
import CreateProjectDialog from "./CreateProjectDialog";

function onSearch(v) {
    console.log(v);
}

const ProjectHeader = (props) => {

    const {searchProject} = props

    return (
        <div className="projectPage_ProjectHeader_box">
            <Search
                shape="simple"
                onSearch={onSearch}
                hasClear
                className="projectPage_ProjectHeader_box_search"
            />

            {/*新建项目弹窗，，并传输弹窗相关State给到子组件使用*/}
            <CreateProjectDialog searchProject={searchProject}/>
        </div>
    );
};

export default ProjectHeader;